package ca.ualberta.cs.PrivacyManagement;

import java.util.Random;

public class PasswordManager {

	private static Random randGen = new Random(2);
	private final static int passLength = 6;
	private final static String passChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; 
	
	public static String generateNewPassword(/*String oldPassEncrypted*/){
		//create new password
//		String prePass = oldPassEncrypted.substring(0,passLength).toUpperCase().trim();
		
		StringBuffer buf = new StringBuffer();
        for (int i = 0; i < passLength; i++) {
            int pos = randGen.nextInt(passChars.length());
            buf.append(passChars.charAt(pos));
        }
        return buf.toString();		
		
	}
	
//	public static boolean passwordForgottenVerification()
}
